﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Ord.Repository.Entities
{
    /// <summary>
    /// 购物车
    /// </summary>
    [Table("ord_shoppingCart"), Comment("购物车")]
    [Serializable]
    public class ShoppingCart : EfEntity
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [Required]
        [Comment("用户ID")]
        public long UserId { get; set; }

        /// <summary>
        /// 商品ID
        /// </summary>
        [Required]
        [Comment("商品ID")]
        public long GoodsId { get; set; }

        /// <summary>
        /// 商品规格ID
        /// </summary>
        [Required]
        [Comment("商品规格ID")]
        public long SizeId { get; set; }

        /// <summary>
        /// 商品数量
        /// </summary>
        [Comment("商品数量")]
        [Required]
        public int Count { get; set; }
    }
}
